#include "ThreadTemplate.hpp"
#include <unistd.h>
using namespace ThreadModule;
class ThreadData {
    public:
        pthread_t tid;
        string name;
};
void count(ThreadData td) {
    while(true) {
        cout << "我是一个新线程" << endl;
        sleep(1);
    }
}
//
int main() {
    ThreadData td;
    Thread<ThreadData> t(count, td);
    t.Start();
    t.Join();
    return 0;
}